package com.xmut.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xmut.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xmut.eduservice.entity.vo.CourseInfoVo;
import com.xmut.eduservice.entity.vo.CoursePublishVo;
import com.xmut.eduservice.entity.vo.CourseQuery;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author huangchaoqin
 * @since 2020-08-04
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);


    CoursePublishVo getCoursePublishVoById(String id);

    void pageQuery(Page<EduCourse> pageParam, CourseQuery courseQuery);

    boolean removeCourse(String courseId);

    List<EduCourse> getHotCourse();
}
